package com.pktechan.api.dao;

import com.pktechan.api.base.BaseMapper;
import com.pktechan.api.entity.CloudPointFlow;
import com.pktechan.api.vo.CloudPointFlowVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: cloudfloating
 * @description: 云积分流水DAO接口
 * @author: qx.zhang
 * @create: 2021-03-05 12:51
 **/
@Repository("cloudPointFlowMapper")
public interface CloudPointFlowMapper extends BaseMapper {
    /**
     * 根据订单ID查询应得云积分ID
     * @param tradeOrderId
     * @return
     */
    List<CloudPointFlow> getGenerateListByTradeOrderId(Integer tradeOrderId);
    /**
     * 查看收入明细列表
     * @param custId
     * @return
     */
    List<CloudPointFlowVO> getIncomeDetailsListByCustId(Integer custId);

    /**
     * 查看兑付明细
     * @param custId
     * @return
     */
    List<CloudPointFlowVO>  getCashingDetailsByCustId(Integer custId);

}
